package com.xyh.transaction.entity.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

@ApiModel(value = "新增或修改用户实体", description = "接收前端传递过来的参数")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditOrAddDto {

    @ApiModelProperty(value = "用户id", required = true, example = "1")
    private Integer id;

    private Set<String> roleNames;

    @ApiModelProperty(value = "用户名", required = true, example = "zs")
    private String username;

    @ApiModelProperty(value = "年龄" , required = true ,example = "18")
    private Integer age;


    @ApiModelProperty(value = "头像", required = true, example = "https://img-1323317179.cos.ap-shanghai.myqcloud.com/f5c4a83c-a4de-48a8-9b65-5c207b5851a2.jpg")
    private String avatar;

    @ApiModelProperty(value = "性别 0：女  1：男", required = true, example = "1")
    private Integer gender; // 0：女  1：男

    @ApiModelProperty(value = "身份证号", required = true, example = "12222222222")
    private String idCard;

    @ApiModelProperty(value = "邮箱", required = true, example = "xxxxxx@qq.com")
    private String email;

    @ApiModelProperty(value = "照片", required = true, example = "https://img-1323317179.cos.ap-shanghai.myqcloud.com/f5c4a83c-a4de-48a8-9b65-5c207b5851a2.jpg")
    private PhotoDto[] photo;
}
